package org.example.meetingsystem.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum RoomStatus {
    AVAILABLE("AVAILABLE", "空闲"),
    LOCKED("LOCKED", "锁定"),
    RESERVED("RESERVED", "预定"),
    IN_USE("IN_USE", "使用中"),
    MAINTENANCE("MAINTENANCE", "维护");

    @EnumValue
    private final String code;
    private final String desc;

    RoomStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
